import os
import sys
import pytest

if __name__ == "__main__":
    # 添加测试路径和参数
    pytest.main(["./testcase", "--alluredir=./reports/tmp", "--clean-alluredir", "-v"])
    os.system("allure generate ./reports/tmp -o ./reports/UIReport --clean")
    # 启动Allure报告HTML
    os.system("allure serve ./reports/tmp")
    # os.system('allure open -h 127.0.0.1 -p 8083 ./reports/UIReport')
